# _*_ encoding:utf-8 _*_
from django.conf.urls import url

from games.viewes.creates import UserRecordView
from games.viewes.listes import UserRecordlist

urlpatterns = [
        #平台历史展示数据
        url(r'^prcord/$',UserRecordlist.as_view({'get':'list'})),

        #用户所有展示数据
        url(r'^user/$',UserRecordlist.as_view({'get':'listes'})),

        # 用户最近一条展示数据
        url(r'^user/(?P<pk>\d+)/$', UserRecordlist.as_view({'get': 'retrieve'})),

        #用户创建数据
        url(r'^adduser/$',UserRecordView.as_view({'post':'creates'})),
        #
        # #用户更新及平台创建
        url(r'^updateuser/$',UserRecordView.as_view({'post':'update'})),
        #
        # #平台创建
        # url(r'^updateuser/$', UserRecordView.as_view({'post': 'create'})),



]